package cn.gson.school.entity.zhaosheng;

import java.util.Date;

import javax.persistence.*;

import org.hibernate.validator.constraints.Email;

import cn.gson.school.entity.xitong.UserInfoEntity;

/**
 * 招生模块--学生录入表
 * 学员编号；学员姓名；学员性别；学生号码；学生住址；学员学历；学生年龄；学生兴趣等级；备注信息；学生状态；学生qq；学生邮箱；用户id；学生学校；学生学校；
 * 学生专业；学生学院
 */
@Entity
@Table(name = "tb_zs_student")
public class InputStudentEntity {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long inputstuId;
	private String inputStuName;
	private Integer gender;
	private String phone;
	private String address;
	private String degree;
	private Integer age;
	private String interest;
	private String remark;
	private Integer status;
	private String qq;
	private Date inputTime;

	@Email
	private String email;

	@ManyToOne
	@JoinColumn(name = "userinfo_id")
	private UserInfoEntity userinfoId;
	/** 用户表外键id */

	private String school;
	private String subject;
	private String collage;

	public Long getInputstuId() {
		return inputstuId;
	}

	public void setInputstuId(Long inputstuId) {
		this.inputstuId = inputstuId;
	}

	public String getInputStuName() {
		return inputStuName;
	}

	public void setInputStuName(String inputStuName) {
		this.inputStuName = inputStuName;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getInterest() {
		return interest;
	}

	public void setInterest(String interest) {
		this.interest = interest;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public UserInfoEntity getUserinfoId() {
		return userinfoId;
	}

	public void setUserinfoId(UserInfoEntity userinfoId) {
		this.userinfoId = userinfoId;
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getCollage() {
		return collage;
	}

	public void setCollage(String collage) {
		this.collage = collage;
	}

	public Date getInputTime() {
		return inputTime;
	}

	public void setInputTime(Date inputTime) {
		this.inputTime = inputTime;
	}

	@Override
	public String toString() {
		return "InputStudentEntity [inputstuId=" + inputstuId + ", inputStuName=" + inputStuName + ", gender=" + gender
				+ ", phone=" + phone + ", address=" + address + ", degree=" + degree + ", age=" + age + ", interest="
				+ interest + ", remark=" + remark + ", status=" + status + ", qq=" + qq + ", inputTime=" + inputTime
				+ ", email=" + email + ", userinfoId=" + userinfoId + ", school=" + school + ", subject=" + subject
				+ ", collage=" + collage + "]";
	}

}
